import './assets/main.css'

import { createPinia } from 'pinia'
import { createApp } from 'vue'
import GlobalCom from '@/components/GlobalCom.vue'
import App from './App.vue'
import router from './router'

const app = createApp(App)

app.use(createPinia())
app.use(router)

// 全局配置 config
app.config.globalProperties.x = 6
declare module 'vue' {
  interface ComponentCustomProperties {
    x: number
  }
}

// 全局组件 component
app.component('GlobalCom', GlobalCom)

app.mount('#app')
